package com.rw.pojo;

public class Student2 {
    private Integer tid;
    private String tName;
    private String age;
    private Integer sex;
    public Student2() {
        this.tName = "空参构造函数赋值";
    }

    public Student2(Integer tid, String tName, String age, Integer sex) {
        this.tid = tid;
        this.tName = tName;
        this.age = age;
        this.sex = sex;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Student{" +
                "tid=" + tid +
                ", tName='" + tName + '\'' +
                ", age='" + age + '\'' +
                ", sex=" + sex +
                '}';
    }
}
